home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / pcx_c.zip / PCX.H < prev    next >
C/C++ Source or Header  |  1988-04-17  |  718b  |  47 lines

  1. /*    PCX   Header for PCX file gen. routines
  2.  
  3.     Based on ZSOFT technical reference manual 
  4.     from Shannon at ZSOFT, who asked to see a copy 
  5.     of this when it's done.
  6.     
  7.     ZSOFT corp.
  8.     1950 Spectrum Circle
  9.     Suite A-495
  10.     Marietta, GA 30067
  11.     (404) 428-0008
  12.  
  13.     Update History:
  14.     
  15.     10-Mar-88:  Starting.
  16.     12-Apr-88:  done!
  17. */
  18.  
  19.  
  20. #include "vgr.h"
  21.  
  22.  
  23. typedef struct {
  24.    unsigned char red, green, blue;
  25. } TRIPLET;
  26.  
  27. typedef struct {
  28.    char maker,
  29.      version,
  30.     code,
  31.     bpp;
  32.    int    x1, y1, x2, y2,
  33.        hres, vres;
  34.    TRIPLET triple[16]; /* palette */
  35.    char vmode, 
  36.        nplanes;
  37.    int    bpl;
  38.    char __unused[128-68];
  39. } PCXHDR;
  40.  
  41. typedef struct {
  42.    PCXHDR hdr;
  43.    uchar **rows[4];
  44. } PCXPIC;
  45.  
  46.  
  47.